Release 10.1A: OpenEdge Getting Started:
Object-oriented Programming
Referencing routines on the call stack
The
PROGRAM-NAMEbuilt-in function returns the name of a routine on the call stack. It takes an integer argument that indicates the level of the call stack to be return. If the argument is 1, the name of the current routine is returned. If it is 2, the name of the calling routine is returned. If there is no calling routine, the application is at the top of the call stack and Progress returns the Unknown value (?).If a position on the call stack contains a method reference,
PROGRAM-NAMEreturns a string with the following form:
Element descriptions for this syntax diagram follow:
method-nameThe calling method.
class-file-nameThe class file where the calling method is implemented.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |